import request from '@/utils/request';

export async function reqTyRoleList(data: any, options?: any): Promise<any> {
	return request('/api/sys/role/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddTyRole(data: any, options?: any): Promise<any> {
	return request('/api/sys/role/create', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateTyRole(data: any, options?: any): Promise<any> {
	return request('/api/sys/role/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteTyRole(data: any, options?: any): Promise<any> {
	return request('/api/sys/role/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


